﻿@model CampWeek5__Book_Project_.Models.IndexVM

<br />
<div>
    <form method="get" action="@Url.Action("ResultsPage","Home")">
        <input name="search" class="form-control" /><button class="btn btn-default" type="submit">Search</button>
    </form>
</div>

<h2>Book of The Day</h2>'
<a class="btn btn-warning" >Book of the day </a>
<div class="row well-lg container" id="BoDBox">
    <div class="col-lg-2 ">

        <img id="BookODay" src="@Model.FeaturedBook.BookImg" />
    </div>
    <div class="col-lg-10 col-md-9 cold-sm-8 col-xs-6">
        <h3>@Model.FeaturedBook.Title</h3><strong>Summary</strong><br />
        @Model.FeaturedBook.Summary
    </div>
</div>
<h2>See What Everyone Else Is Reading</h2>
<a class="btn btn-success" href="/Admin/AdminCreateBook">Add book</a>
<div class="row">

    @foreach (var b in Model.Books.Take(6))
    {

        <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">

            <br />
            <a style="color:black;" href="/Admin/AdminBookDetail/@b.ISBN">
                <img id="fp" src="@b.BookImg" />
                <br />
                @b.Title
            </a>
            <br />
        </div>
    }
</div>
<h2>Most Popular Authors</h2>
<a class="btn btn-success" href="/Admin/AdminCreateAuthor">Add author</a>
<div class="row">
    @foreach (var a in Model.Authors.Take(6))
    {

        <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">

            <br />
            <a style="color:black;" href="/Admin/AdminAuthorDetail/@a.AuthorId">
                <img id="fp" src="@a.AuthorImg" />
                <br />
                @a.AuthorName
            </a>
        </div>

    }
</div>
